package top.tagao.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import top.tagao.yygh.model.hosp.Department;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/4 9:58
 */

@Repository
public interface DepartmentRepository  extends MongoRepository<Department, String> {

    //通过 hospCode  depCode 判断科室是否存在
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
